package com_6;

import java.util.*;
import java.util.stream.Stream;

public class Test {//定义一个测试类
    public static void main(String[] args) {
        //main方法入口
        List<String> list = new ArrayList<>();
        //创建list集合对象
        Set<String> list1 = new HashSet<>();
        //创建set集合对象
        Map<String, Integer> map = new HashMap<>();//创建map集合对象
        String[] arr = {"1", "2", "3"};//定义一个数组
        Stream<String> stream = list.stream();
        Stream<String> stream1 = list1.stream();
        Set<String> keystrings = map.keySet();//
        Stream<String> stream2 = keystrings.stream();
        Collection<Integer> values = map.values();//
        Stream<Integer> stream3 = values.stream();
        Set<Map.Entry<String, Integer>> entries = map.entrySet();//
        Stream<Map.Entry<String, Integer>> stream4 = entries.stream();
        Stream<String> arr1 = Stream.of(arr);
        Stream<Integer> integerStream = Stream.of(11, 22, 35, 45);//
        Stream<Double> doubleStream = Stream.of(0.1, 0.2, 0.3);//
    }
}
